package lab02.test35;
//继承Employee类的计算方法
public class Manager extends Employee {
    float monthSalary;
    public Manager(String name,float monthSalary){
        super(name);
        this.monthSalary=monthSalary;
    }
    @Override
    public double computeSalary() {
        //每月获得一份固定的工资
        return monthSalary;
    }
}
